package java.com.atguigu.springcloud.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.com.atguigu.springcloud.service.IMessageProvider;

/**
 * @Author: 19shusheng.com
 * @Description:
 * @Date: Created in 19:17 2021/3/10
 * @Modified By:
 */
@RestController
public class SendMessageController {
    @Resource
    private IMessageProvider messageProvider;

    @GetMapping(value = "/sendMessage")
    public String sendMessage()
    {
        return messageProvider.send();
    }
}
